package chapter3;
import java.util.Scanner;
public class maxmin {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        int a=input.nextInt();
        int max=a,min=a;
        int b=input.nextInt();
        if (b>max){
            max=b;
        }
        if (b<min){
            min=b;
        }
        int c=input.nextInt();
        if (c>max){
            max=c;
        }
        if (c<min){
            min=c;
        }
        System.out.println(min);
        System.out.println(a+b+c-max-min);
        System.out.println(max);
    }
}
